package com.broada.apm.service.impl;

import com.broada.apm.ajax.ResourceResult;
import com.broada.apm.base.BaseService;
import com.broada.apm.model.Resource;
import com.broada.apm.service.ResourceService;

public class ResourceServiceImpl extends BaseService implements ResourceService {

	@Override
	public ResourceResult queryResourceApdex(String resId) {
		ResourceResult result = new ResourceResult();
		Resource resource = resLogic.queryKeyResourceById(resId);
		if (resource.getApdex_t() <=0)
			resource.setApdex_t(confLogic.queryBaseApdex());
		result.addData("result", resource);
		return result;
	}

}
